home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ARASAN_S.ZIP / BHASH.H < prev    next >
C/C++ Source or Header  |  1993-11-17  |  556b  |  29 lines

  1. // Copyright 1992 by Jon Dart.  All Rights Reserved.
  2.  
  3. #ifndef _BOARD_HASH_H
  4. #define _BOARD_HASH_H
  5.  
  6. #include "board.h"
  7. #include "emove.h"
  8. #include "hash.h"
  9.  
  10. class Board_Hash
  11. {
  12.     public:
  13.         
  14.     static void free();
  15.     
  16.     static unsigned long HashCode( const Board &ABoard );
  17.     
  18.     static unsigned long HashCode2( const Board & b);
  19.     // another hash code, more or less uncorrelated with HashCode
  20.  
  21.     static void UpdateHash( const Board &ABoard, 
  22.         const ExtendedMove &emove, 
  23.         const unsigned long OldHash, unsigned long &NewHash);
  24.  
  25. };
  26.  
  27. #endif
  28.  
  29.